CC=g++
CFLAGS=-c -Wall -ansi -I./include -I/c/engines/sfml/include -DSFML_STATIC -DDEBUG
LDFLAGS=-L/c/engines/sfml/lib -lsfml-window -lsfml-system -lsfml-graphics
SOURCES=./src/main.cpp ./src/IApp.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=game.exe

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(CC) $(OBJECTS) -o $@ $(LDFLAGS)
	
.cpp.o:
	$(CC) $(CFLAGS) $< -o $@
	
clean:
	rm -rf ./src/*o game.exe